export function sendSuccess(data, msg = "success", options) {
  return {
    code: 0,
    data,
    msg,
    success: true,
    ...options,
  };
}

export function sendFail(data, msg = "fail", options) {
  return {
    code: 500,
    data,
    msg,
    success: false,
    ...options,
  };
}
